﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Guan.CMS.Core;
using Guan.CMS.Web.Core.ActionFilters;

namespace Guan.CMS.Web.Controllers
{
    [UserFilter]
    public class TestController : Controller
    {
        //
        // GET: /Test/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult TestUrl()
        {
            var virtualPath = "~/aaa/bbb/cc.png";
            var a = PathHelper.ApplicationPath;
            var b = PathHelper.RootPath;
            //var c = PathHelper.ConvertSpecifiedPathToRelativePath(Server.MapPath(virtualPath));
            return Content(a);
        }
    }
}
